package com.weng.cloud.service8881.lombok;

import com.weng.cloud.commons.base.JsonUtil;

import java.util.Date;

/**
 * @Author: weng
 * @Date: 2022/5/14
 * @Description: com.weng.cloud.service8881.lombok
 * @see <a href="https://baijiahao.baidu.com/s?id=1688857212154835626">使用@SuperBuilder替代@Builder构建父类属性</a>
 */

public class TestBuilder {

    public static void main(String[] args) {
        DigitalAlbum digitalAlbum = DigitalAlbum.builder()
                .createBy("宋森动")
                .createTime(new Date())
                .name("dream high")
                .price(20D)
                .build();
        System.err.println(JsonUtil.toText(digitalAlbum));
    }
}
